package cn.lili.modules.publish.entity;

import java.util.Date;

import cn.lili.mybatis.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 【请填写功能名称】对象 li_publish_information
 * 
 * @author ruoyi
 * @date 2024-12-19
 */
@Data
@TableName("li_publish_information")
@ApiModel(value = "信息发布")
public class LiPublishInformation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 信息标题 */
    @ApiModelProperty(name = "信息标题")
    private String title;

    /** 信息内容 */
    @ApiModelProperty(name = "信息内容")
    private String content;

    /** 发布人 */
    @ApiModelProperty(name = "发布人")
    private String author;

    /** 发布时间 */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @ApiModelProperty(value = "发布时间")
    private Date publishedTime;

    /** 信息状态，默认为草稿 */
    @ApiModelProperty(name = "信息状态，默认为草稿")
    private String status;

    /** 信息类别 */
    @ApiModelProperty(name = "信息类别")
    private String category;

    /** 是否推荐 */
    @ApiModelProperty(name = "是否推荐")
    private Integer isFeatured;

    /** 缩略图 */
    @ApiModelProperty(name = "缩略图")
    private String thumbnail;

    /** 部门ID */
    @ApiModelProperty(name = "部门ID")
    private Long deptId;


}
